package com.ch04.entity;

import java.util.Date;
import java.util.List;

/**
 * @ClassName User
 * @Description TODO
 * @Author Kx
 * @Date 2025/5/12 14:59
 * @Version 1.0
 */
public class User {
    // 实体的参数名和请求参数名一一对应
    private String username;
    private Integer age;
    private Date birthday;
    private List<String> phones;
    // 一对一关联身份证
    private IdCard idCard;
    // 一对多关联地址
    private List<Address> addresses;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public List<String> getPhones() {
        return phones;
    }

    public void setPhones(List<String> phones) {
        this.phones = phones;
    }

    public IdCard getIdCard() {
        return idCard;
    }

    public void setIdCard(IdCard idCard) {
        this.idCard = idCard;
    }

    public List<Address> getAddresses() {
        return addresses;
    }

    public void setAddresses(List<Address> addresses) {
        this.addresses = addresses;
    }
}
